package com.opennews.openplatform.dto.user;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.opennews.openplatform.myspringbootcore.dto.IdentityDto;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class UpdateUserRolesDto extends IdentityDto {
    @NotBlank(message = "username can't be blank")
    private String username;

    @NotEmpty(message = "Roles can't be empty")
    private List<Map<String, Object>> fullRoles;
}
